<template>
  <div class="webapp-box">
    <div class="banner">
      <el-carousel height="130px">
        <el-carousel-item v-for="(item,index) in metadata.bannerList" :key="index">
          <img class="img" :src="item.img">
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script>
export default {
  name: 'mallBanner',
  props: {metadata: Object},
}
</script>

<style scoped>
.webapp-box {
  width: 320px;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.banner {
  width: 100%;
}

.img {
  width: 95%;
  height: 100%;
  border-radius: 5px;
}
</style>
